menuNode should be null if null or an invalid node are passed to setMenuNode