MOB-2591 fixed bug reported by Wojtek, added null checks for firebase callbacks