[BUGFIX] Confirm dialog does not close

Change-Id: I309e248c0fc2cbab63310899b60a75cce554d6b2
Fixes: #52748
Reviewed-on: https://review.typo3.org/24696
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers