Issue #676 fix: unique permalink generation fixed

This fixes Issue #676: ContentEntry.next_unique_slug fixed to correctly handle similar slugs after 10th