enusure stats script doesnt fail if no session data yet on department/branch
merge fix