Fix XML parsing when cursor is on a blank line.