[fix] Don't blow up if we're not given a valid range