Update Task.groovy to handle which Selenium version to use
After MDL-82373 with core changes to prepare for Selenium 4 we need to update the Task.Groovy to automatically use the latest selenium version, unless other version is specified. That will avoid updating every single job in CI.