updated function to prevent error in average when adding new review
updated function to prevent error in average when adding new review

FirebaseExtended/firestore-codelab-extended-swift,FirebaseExtended/firestore-codelab-extended-swift,FirebaseExtended/firestore-codelab-extended-swift