small bugfix for gait, in case the trace file is shitty
small bugfix for gait, in case the trace file is shitty

fgolemo/dataCollector,fgolemo/dataCollector,metamarkovic/dataCollector,metamarkovic/dataCollector