Fixes issue #174. Instead of failing hard on empty repeats, bail early.