Beep don't fail and handle TextViewLines exceptions

- If no line undo information is available just beep, don't fail
- Wrap access to TextViewLines in try/with block