Bug 957259 - Error: "TypeError: caretPos is null" in SelectionHandler.js @ line: 585, r=margaret