Fix problem with unmarshalled resources

Calling methods on the loaded resource would raise NoMethodError
"<undefined method `attr_accessor' for nil:NilClass>".
Merge pull request #20 from dasch/dasch/fix-marshal-problem

Fix problem with unmarshalled resources