gst-gi: fix a bug in arguments validation of function