gst: Add security checks when closing active_source
gst: Add security checks when closing active_source

TheImagingSource/tiscamera,TheImagingSource/tiscamera,TheImagingSource/tiscamera,TheImagingSource/tiscamera