Fixes 1.9.3 compatibility issue with NilClass#to_h.
Merge pull request #14 from tylerdooling/master

Fixes 1.9.3 compatibility issue with NilClass#to_h.