Don't allow deletion of associated node

Checks that node is associated with instance
added to method destroy_node() in db api.
Exception NodeAssociated raised in case associated node.

Change-Id: I52c7a0b3d33078b38460b5fd08e4cd2d4c7731ef
Merge "Don't allow deletion of associated node"