Fix for _id == 0 not recognized as key for collection.save, Issue #1077