prevents building Thrift objects when attributes is nil