THRIFT-2246 Unset enum value is printed by ToString() - fix for some edge cases

Patch: Jens Geyer