Edited write.update to accept updates if node._id == 0

The current if-clause for checking the existence of node._id does not take into account that integer values of 0 is equivalent to the boolean value of false, meaning that a supplied id of 0 will be seen as a falsy value.
The proposed fix handles this case.