Ping fails if window has no root elements yet