fixed NPE when adding retrospective consult note to a patient with no active