Fixing a type error in couchdb WMTS output.