STS-3625: fixed an issue with validations running for beans in profiles that are not activated in beans config set