Fix incompatibility with new version of Cucumber for Java plugin.