#263354 by joshk: Allow panels_node nodes to be created programmatically by allowing $layout to be set through $node prior to checking arg(3).