We're in thread mode here so we use ThreadUI.cleanForm(). Previously we had one hybrid edit mode that worked for both (but was broken by the thread-id-in-the-hash patch). Since I'm splitting the edit modes here I've moved the relevant code to where it should belong; before we were doing this in message_manager.js.