JBTM-1341. Do not allow invalid node ids (master)