Temporary fix for 'undefined' appearing for a new patient.