It's actually quite the opposite. Hard woods are the safe wood to use. Soft woods are just dangerous. Pine, fir, Cedar, Etc.
Its often not as noticed when it comes to pellets, especially if your rabbit doesnt have physical contact them, but why risk it?
Have a read of these 2 links...