Only destroy the namespace cmd if the node is marked as deleted

Destroy the namespace cmd if the node is marked as deleted otherwise
the namespace manager will destroy the namspace cmd during the
properties population.