Fix RiakConnection.get_code(int)

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