Fix a potential NPE in CraftWorldCache.