Add asserts to check for failures of the QueryPerformance* functions in precise_time_ns
Closes #2675.