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.
I suggest adding a php error message that includes information about the cause of the failure to simplify troubleshooting the issue.