GetMissingDictionaries recursion for classes with dictionaries. (ROOT-6260)

The check for infinited recursion and caching of already checked classes was only made for classes without dictionaries and the case for classes with dictionaries was overlooked.