fixed the registration of the web profiler when the profiler is disabled