Added check for null materials in CraftMagicNumbers. Fixes #1042

* Applied missing container patch from 1.6