Gracefully handle nil attributes
Merge pull request #8 from Nivio/master

Gracefully handle attributes = nil on construction