Fix an error when there are more than 1k records in a zone

  This is related to Django having a built-in (sane) limit of 1000
  entries. When you save a zone with > 1000 records, Django throws a
  ListIndexOutOfRange error at 1000.