Avoid TypeError when textarea is empty.

Avoid returning undefined from getCaretPosition, so that we don't
pass undefined to jQuery.css.

Fixes #53.