Add workaround to avoid unexpected null result of utils.getTestWindow()