Fixes a random crash when spawning a creature.

Added a check to make sure their name is actually unique.