obspy-scan: correctly detect last gap in trace