fix an issue with Node.new

now the method do not crash anymore when nil is given as input