fix for medication null checking, it is possible for you to submit a prescription to a patient without a history