[browser test] Workaround for the problem when Cucumber hook executes twice

Bug: 56116
Change-Id: I99bf48b1452647b42edd97dc47e8664b08b7667a