Fix Issue 5357

Before usage of profile to dump changes to filesystem as it's already
done for local FirefoxDriver().