GROOVY-7206: NullPointerException when setting an unknown property in a trait