Check for interfaces in the class loader (see contao/core#7425)