Fix using --capabilities and --openlayers

cache['http_url'], cache['http_urls'] and cache['hosts'] can also be False.
Merge pull request #180 from sbrunner/fix-cap-ol

Fix using --capabilities and --openlayers