exception handling for none last_modified entries case in median calc
general exception handling in stat calc