Prevent `Uncaught TypeError: Cannot call method 'disable' of undefined`
Merge pull request #543 from Philzen/patch-3

Prevent `Uncaught TypeError: Cannot call method 'disable' of undefined`