Fixed crash on chunks that are used by an entity after generation