Fixed node handling methods in order to comply with https://github.com/jenkinsci/jenkins/commit/3f8fc4e2ec5b1b421e1551a2a2fc2a284be330d1

Signed-off-by: Oleg Nenashev <o.v.nenashev@gmail.com>