GROOVY-5872: Null values cannot be assigned to fields which type use a generic type