Fix for crash when killing entities that don't have global IDs