Fixes #382 where a NPE causes the TimerTask from running again.