Fixed createRecord for one-to-none associations

Used to die on creating the record. This was due to calling get
with undefined key.
Merge pull request #13 from KnownSubset/master

Fixed createRecord for one-to-none associations