So I'm able to insert an attachment to an existing node, but when I am creating a new node and running my addattachment method it breaks. Do I need to save the node first?