Fix weight calculation when all apps have weekly_downloads=NULL