WELD-1645 - Improve AfterBeanDiscovery input validation