Fixed error in protocol handling for the riak backend