omx: handle both errors in the two steps of update_port_definition
omx: handle both errors in the two steps of update_port_definition

Also consider potential errors in the _get_parameter() in the return of the
update_port_definition function.

CID #1287052

pliu6/gst-omx,pliu6/gst-omx