Fix crash when clicking New Patient button without logging in first.