Fix total to be returned as 0 instead of nil if there are no users