handle duplicate class definition errors during module classloading

Per BZ https://bugs.eclipse.org/bugs/show_bug.cgi?id=424950