Fixes exception crash if enum is defined more than once.

In my project I have multiple copies of certain header files, this leads to a crash with the latest appledoc as it throws an exception if the enum is already defined,

This PR changes this so that the first variant of the enum is used and later ones are silently ignored. With this fix my project (http://pspdfkit.com) compiles the documentation again.