Bug fix: If entity is removed from datalist and it doesn't exist in the
database it explodes into tiny pieces.
Added a guard check to make sure it deletes only non-transient entities.