Update getSegs.py

Hi David,

This was failing for me, occasionally startrange is empty, so this skips that case.