Fixed a context menu bug.

Bringing up a context menu when there is no caret would cause a
crash. This has been fixed.
Version bump.
Merge branch 'release/0.12.2'
Merge tag 'v0.12.2' into develop

0.12.2