utils: Ghostpads can be request pads too but check if the pad has a template
utils: Ghostpads can be request pads too but check if the pad has a template

Otherwise we dereference NULL in some cases and crash.

StreamUtils/gstreamer,shelsonjava/gstreamer,shelsonjava/gstreamer,mparis/gstreamer,jpxiong/gstreamer,jpxiong/gstreamer,centricular/gstreamer,shelsonjava/gstreamer,centricular/gstreamer,jpxiong/gstreamer,centricular/gstreamer,StreamUtils/gstreamer,shelsonjava/gstreamer,StreamUtils/gstreamer,krichter722/gstreamer,centricular/gstreamer,mparis/gstreamer,shelsonjava/gstreamer,mparis/gstreamer,krichter722/gstreamer,mparis/gstreamer,StreamUtils/gstreamer,mparis/gstreamer,centricular/gstreamer,krichter722/gstreamer,krichter722/gstreamer,jpxiong/gstreamer,jpxiong/gstreamer,StreamUtils/gstreamer,krichter722/gstreamer