Added a few more null and NullPointerException checks.

NEI and other mods should not be producing NullPointerException errors
anymore, and should render all items correctly.