Fix exception when Firebase repository is empty