Fix GStreamer critical error on URI download

The URI download GStreamer element doesn't always exist therefore we can
get an error when trying to set state on a NULL pointer. We should test
the existence of the element before performing an operation on it.