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 setup and I was not sending in any initial attributes.

Includes a new test case.