Catch Firefox/IE exception when calling setSelectionRange on hidden input.