Prevent NPEs while loading the OreDictionary.

Also writes a log message when it happens for mod devs.