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