Fix ElasticaToModelTransformer the transform closure use Result instead of Document