handle nil in firebase syncing