Thanks for reporting!
This way it seems a bit cleaner to me:
if (resourceUrl != null) {
if (beansXmlUrl != null) {
WeldServletLogger.LOG.foundBothConfiguration(beansXmlUrl);
} else {
beansXmlUrl = resourceUrl;
}