Corrected a problem when creating MessageDialogs

MessageDialog requires buttons to be present and provides
ButtonsType.NONE for no button.