Fix "Uncaught TypeError: Object.keys called on non-object" when no initial attributes

I was getting an 

````
Uncaught TypeError: Object.keys called on non-object"
````

for models where I had defaults defined and I was not sending in any initial attributes.

Includes a new test case.