Fix panic when showing activity report for user with no events. Fix median.
Fix panic when showing activity report for user with no events. Fix median.

Symantec/keymaster,rgooch/keymaster,Symantec/keymaster,Symantec/keymaster,rgooch/keymaster,rgooch/keymaster