Fix rare IllegalStateException in ReplyFragment when used as a dialog.