avcodec/jpeglsdec: check err value for ls_get_code_runterm()