made getPatientIdentifier method nullsafe for identifiers without a location