add compatibility for Gherkin versions < 2.11.7

Gherkin versions prior to 2.11.7 did not have the `evaluate()` method. For backwards compatibility, provide `evaluate()` if it is not available.