Slightly modified fix for #622 based on https://github.com/cefsharp/CefSharp/pull/626
Merge pull request #630 from amaitland/master

Slightly modified fix for #622 based on PR #626