Fixing issue with ambiguous dsn

I have a cloud provider that injects the DSN into the environment. This dsn sometimes looks like "redis://localhost:6379", which would throw an exception on explode('@', $server), thats why I added the additional check.