Issue #17: Some patients can break the patient similarity UI
Fixed