Fixes https://github.com/couchbase/couchbase-lite-ios/issues/403: database pointer to CBLQueryRow would not be set in time for query enumeration.