Fix for dandling classes incorrectly considered as non-interfaces.

Now it gives an exception telling the user what is the root cause of the problem. The user can then ensure its loading.