mips: fix mips_ejtag_set_instr error handling