Restricted "Zero-duration activity" error to when the duration is being calculated over the entire activity - was preventing TCX files from being created with zero-duration laps.
Don't create empty Track elements in TCX output.