Fix TypeError when no options provided

`TypeError: Cannot read property 'debug' of undefined`