Handling NULL object passed to thrift layer.