Fix for issue #1080: if modal is open, step 3 in workflow is done, no matter how the modal is closed