GROOVY-6129: Fix NPE with diamond type inference if left hand side of assignment doesn't have generics