fix G5K script
report errors in the results correctly
Fix NPE when accessing non-existing statistics