fix `Object.keys called on non-object` error in stats calculation

in some cases lift parsers can now return empty (undefined) data - see
Alyeska parser
we assumed that if there was no error reported data was always
initialized, we don't make that assumption any more
Merge remote-tracking branch 'origin/fix-server-errors'