Okay, I finally reproduced your issue with template completions on the first line. The good news is: it's now mostly fixed! The bad news is: it's not fixed in one corner case. Expanding a template completion when the cursor is at offset 0 still does not work.
The corner case should not present much of a problem.