Fixed issue where pipeline would not establish connection

pipeline.execute was not waiting for the connection to be ready before executing. The test case passes without the fix because the database select in the test suite causes client.execute_command which waits for the connection. Setting the test client to use database None or 0 caused the pipeline execute to fail.