MLP texta-toolkit-rest compatibility

With MLP version 1.8.0 lang structure has changed: "lang": {"detected_lang": "fr", "analysis_lang": "et"}

Tests have been made in MLP but this does not pass texta-toolkit-rest