removing exception when no element with given name is found