Added required Null Checks

When the world is starting up, there could be 0 entities in the world,
in which case, it would crash.