Added null check for when material is null

Prevent NullPointerException for when an ID is present on the block{} but never registered by the mod.