Fix divide by 0 errors if there are no logs.