Bug #3319: Clear flow instantiate dialog after each submit

(cherry picked from commit 8cf3aefe4c9fb70f48cd4195c89dfca66da29d78)