Fix RiakConnection.get_code(int)

This is a backport of #351 to the 1.1.x client.