Global variables are not initialized when using existing WebDriver's instance

@ThanhTo It seems that multiple users are affected by the issue. Could you consider fixing it soon, please?