Fixed serv->taskwait core dump.