jpeg2000dec: Propagate error code from get_cox() correctly