Fixed a content creation bug.

Wasn't checking for existing indexes properly, which allowed for
overwriting existing content.  Yikes!