After we add any instruction to an EBB, we can't add EBB parameters anymore. There is an assertion in `append_ebb_param` to detect this error, but the backtrace generated doesn't give any hint what happened. We add an error message to the assertion so the user can understand what is wrong. fixes #1003