Fixing NPE when opening the patient dashboard