Fixed regression introduced with GROOVY-5836