Fix NPE in TimeoutTimerTask, close #697