Fix crash on entity removal that is tagged.