Fixing NPE when saving patient with no relationship