Properly evaluate @Conditional in case of multiple imports for same config class (fixing regression in Spring Boot)

Issue: SPR-11788
(cherry picked from commit 7d78c65)