Details
Description
It is possible that the query stats feature flag was enabled when a request was first registered, but that the feature flag had been disabled before reaching writeQueryStats, in which it throws a uassert. That uassert causes issues that manifest into BF-30856. We should log an error rather than uassert.