Fixed wait-time accounting in the profiler for the Api::send(), Request::send() and requirejs