dashdec: Avoid trying to read any segments beyond the last