Detect to show profiler when config is null

This way, the profiler can listen to app.debug by default.