call NPE when doing math on nil

was occurring when get-trials returned an empty
list. this only happens when a participant had so
many invalid responses (under-300? or over-10000?)
that they were all removed. (avg []) returns nil
which was throwning an error when we tried to do
math on it.