Fixed GraphGadget for NULL return from NodeGadget::create().

This allows NodeGadget::registerNodeGadget() to be used with functions that will return NULL to signify that the node should be hidden.