Stop deleteThreads() from trying if there are no threads.