Fixed 'Bug 17545 - NRE on right-clicking inside the editor'.