Fix bug where cancelling switch from HTML to plain text didn't set editor type selector properly (#1490141)