Fix NPE when closing app when timer hasn't been started