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.
Merge pull request #887 from antonkatz/issue-823

Issue #823: A patient that is owned by a non existing user/group becomes readable.