RPV-172 Fix for a null pointer when logging in as a patient for the first time without data being uploaded