Replacing empty entity id's with a generic one.