Fix: ReferenceError: reference to undefined property this.timer

Fix ReferenceError: reference to undefined property `this.timer`.

The `timer` property only exists if the `timeout` option is used.