Work around setSelectionRange throwing when editor is hidden on FF