Fix error handling for duplicate question ID

http://manage.dimagi.com/default.asp?127310

@mwhite 
Yeah, that's a recent change that was an oversight of mine.  See the last sentence of my comment:

>  Perhaps separate functions for testing the validity of the change and handling it.