DEV: Disable upload instrumentation if performance.measure returns undefined (PR #14427)

Firefox does not return a PerformanceMeasure object when using performance.mark and performance.measure, even though MDN says it should performance.measure() - Web APIs | MDN

So for now, we disable the upload instrumentation with a test to see if a PerformanceMeasure (or anything really) is returned.