Handle an invalid remember cookie (Fix #2415)
Revert [#30556] JDatabaseDriver::replacePrefix: Optimization