[naily] do not call remove_nodes method if nodes not provided