Added safety check to avoid problems when Couch is missing the api views.