Do not query collector if no profiler or profiler was disabled