fix error thrown when undefined options
Merge pull request #3 from jperelli/patch-1

fix error thrown when undefined options