Applied patch by HeiaHeia to master. https://github.com/HeiaHeia/capybara-webkit/commit/d720e4257dbcfc85c17a1bdd25ac40589c9535a2#commitcomment-4125155