QmlProfiler: Avoid overhead if profiling is not enabled