fix for ticket #201 do not crash when redis plugin cannot connect to server

Patch to have the plugin check if the Redis connection was established before trying to send AUTH command for credentials.

This should stop the agent from dying when it cannot connect to the Redis server.