Fixes crash while requesting an entity that was deleted