Fix key error in CouchDatabase.get_cacti_results.