Fixed bug in AppInstance where the nodemapping was not cleared when nodes were cleared