This fixes a problem with connecting to Redis that require authentication. This is a regression introduced in #24924. Fixes #25259