Minor bug fix. When adding to an object a node that can neither be edited or is a collection, don't try to treat it like a collection.