Skip minimize and progress logic in case of no timeout
If we minimize the window, there's a chance we'll have a frame of the minimize animation on the screenshot. Instead, restore the behavior before introducing the timeout progress indicator and call `hide()` on ourselves instead. CCBUG: 376865