Avoid calculating mean or median with empty lists

It can happen when the scanner is interrupted and the result is stored as successful without any downloads.