Null check to patientPropertyResult getValueAsString method

prevent null pointer exceptions for null patient attributes