Changed get_notifs to handle case when notification does not exist, Should not happen on production as user cannot exist without notification, but database has not been migrated yet