Avoid TypeError when textarea is empty.

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

Fixes #53.
Merge pull request #55 from metamatt/mg-fix-53

Avoid TypeError when textarea is empty.