Fix an error getting redis hostname from settings url