Update src/org/bukkit/craftbukkit/CraftWorldCache.java

If !existsInCache is true, then worlds.get(dim) != null can't be true because the key doesn't exist.