#662856 by David_Rothstein, ksenzee: Fixed submitting a form that closes the overlay causes the form to flash on the screen again before it closes.