Slightly modified fix for #622 based on PR #626

 Slightly modified fix for #622 based on PR #626 (note I simply grabbed this from @amaitland's fork) per discussion in https://github.com/cefsharp/CefSharp/pull/626#ref-commit-06e2a1a