Fixed an error on the node edit form when adding a new node.