rosmatlab: fixed empty return values in case of errors