Fix #330: Block insert crashes if starts on an empty line.

getLocationAtOffset expects widget offset, not model.