Fixed internal-error to check to see if the trap was hit while in a branch-delay slot, and deal with it correctly if so.