Hmmm - that seems odd - although it depends on where the UI object it being created (my guess would be that it might be before the battle object has had a chance to sort itself out). AddCustomOrder is really intended to reflect user input so I doubt any has happened before the UI objects have been created

.
Crash details can be found in the error.log file generally, and posting that can give me more to work on if you have any other problems.
Have to mention that your mod looks utterly awesome btw!
Cheers
Pip