Function CollectionReference.doc() cannot be called with an empty path.