Avoid error when optionalDependency 'request' is not present.

Can't even run the tests without this optional dependency being required safely.

I'm narrowing down another issue with the unguarded `require('mime')` in the `data-uri` function, but I thought I'd get this pull request out there to unblock testing.