SERVER-15888: fix profiling inf. loop when can't profile