Fix error handling for duplicate question ID

http://manage.dimagi.com/default.asp?127310

@mwhite 
It would appear so.  This handler will be triggered when initially setting the nodeID of a node, so this check will allow loading of broken forms with duplicate question IDs, while leaving it out would probably result in undefined behavior.