[misc] Fixed warning logged when displaying a patient sheet
Issue #558: Patient sheets created by anonymous users are not indexed
Fixed.