Fix browser initialization sequence
Merge pull request #3182 from pfarestveit/clc-4585

CLC-4585: fix broken Selenium production build