Fix #939 "Empty buttons showing the second time the Form Submitted dialog shows"