Fixes `null` return instead of `0` on calculation for `CouchDB`.
Fixes `null` return instead of `0` on calculation for `CouchDB`.

whowgames/lithium,pixelcog/lithium,graphis/lithium,jails/lithium,graphis/lithium,wbeater/lithium,jails/lithium,UnionOfRAD/lithium,SensCritique/lithium,davidpersson/lithium,davidpersson/lithium,muyehub/lithium,m4rcsch/lithium-core-library,datachand/lithium,wbeater/lithium,muyehub/lithium,SensCritique/lithium,pixelcog/lithium,datachand/lithium,whowgames/lithium,mehlah/lithium,m4rcsch/lithium-core-library,mehlah/lithium,UnionOfRAD/lithium