Applied patch that fixes THRIFT-2219

Version 0.9.2 is not released yet, so instead of merging that and bumping
the gem version to 0.9.2.0.wp, this only contains the cherry-picked fix
and is versioned 0.9.0.6.wp.