Fix entity deletion

It is not enough to specify the start key to retrieve the components of
an entity, but we also must exclude other entity keys that could start
with the entity key being deleted.