Fix `Cannot read property 'options' of undefined`
Task config can be undefined. Since unknown version, grunt.config result `undefined` if no options are found.