ported fix for issue 243
Merge pull request #284 from JanEggers/fix_issue_#243

ported fix for #243 to CefSharp3