Check for window handles in alert check.