gstreamer: fix invalidated factory pointer
When registering an element set the (potentially invalidated) factory pointer in the element class structure to NULL so that it can be re-initialised by gst_element_factory_create_with_properties as appropriate.