Test that Node is a function before using instanceof on it