Fix bug:3829 Enabling query profiling crashes javascript based navigation