fix bug where not passing options or passing null would crash application
Merge pull request #15 from aogilvie/fix/nullObjectAssignmentForOptions

fix bug where not passing options or passing null would crash application