Update ProgressDialogFragment to avoid IllegalStateException