Slightly modified fix for #622 based on PR #626

 Slightly modified fix for #622 based on PR #626 https://github.com/cefsharp/CefSharp/pull/626