Issue #823: A patient that is owned by a non existing user/group becomes readable.
Now, if the owner rights are transferred to a non existing entity, the old rights are kept in place.
Issue #823: A patient that is owned by a non existing user/group becomes readable.