How to fix INVALID_ARGUMENT: Value for argument 'document' is invalid in Firebase | DevErrors