fix for https://github.com/bblimke/webmock/issues/340