add get_entity error to handle non existent entities