basetransform: handle gst_base_transform_query_caps() returning NULL

If gst_base_transform_transform_caps() returns NULL, gst_base_transform_query_caps()
will return NULL as well.

Part-of: <gstreamer/gstreamer!2532>
27 jobs for !2532 with basestransform in 31 minutes and 14 seconds (queued for 4 seconds)
merge request