fix #31721: crash after entry of empty harmony / fb

harmonyEndEdit et al were already removing the element.  I could have just removed these functions, but one could imagine them having other purposes in addition to removing the empty element.