fix a bug in LowerEmSetjmp, and improve error reporting