Correctly update SeeC-Clang mapped state before returning from
moveForwardToEnd and moveBackwardToEnd.