GRAILS-10690 - deal with bean definitions which do not have a bean class name associated with them

More testing is pending.