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.
Merge pull request #553 from johnhaddon/nodeGadgetCreatorNullReturn

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