A menu was being created too early, before it is possible to avoid
creating the menu with an invalid default selection. This was causing
bugzilla to (incorrectly) spew a database corruption error when
attempting to view a bug that had been resolved MOVED. Why this
wasn't causing the same problem with DUPLICATE resolutions, I don't
know. Moved the menu creation later in the code, so that it only
happens after it has been ensured that the default selection is not
going to be MOVED.