Fix TrySetPositionAtLineIndex handling of bad line indices.

Display and go to line numbers (start at 1) rather than indices (start
at 0).
Clean up.