Prevent nil options from throwing exception
Add tests to surround new bug fix
Small syntax style change to appease HoundCI
Merge pull request #73 from aauthor/johnceh-build_options_bug

Bug fix for attempting to build a Document with nil for attributes