Fix #0017605: Regression issue with upgrade step 184

Background and comments / rational on this commit are in http://www.mantisbt.org/bugs/view.php?id=17605.
Submitted seperate PR for this @ https://github.com/mantisbt/mantisbt/pull/288.

Which unlike the crap I wrote here, actually fixes the issue. 

Will pull this change out of the PR