mesa: Cope with the degenerate case of zero length ranges.