serby/save-mongodb — pull request #2 by bengourley (2012-10-15 12:32:29+00:00)
Title: Check id for update != null as well as undefined

I hit this code path by omitting the _id property from my view schema in ctrl, and so at this point it was null rather than undefined. It caused the application to crash because at line 81 it tries to use the idProperty.