Added the data-stats-extended attribute from the root template in upstream adhocracy.
Changed ".length" check to "!=", due length does not exist for Hash types in javascript.