catch NoSuchBeanException when getting dependencies