*8177* Fix upgrade settings fetches (apply to OJS along with above patch for lib/pkp)