Check for ID's that return null materials and prevent them from being added.

Some mods have the item ID on block {} but never register them on the server. This prevents this IDs from generating NullPointerExceptions.