Fix createRecord for one-to-none associations

Used to die on creating the record.  This was due to calling get
with undefined key.