Fixed entity remove bug

Couldn’t be removed because removeComponentbyReference() now checks
requirements.