ClassLoader: do not overwrite already loaded classes

The overwrite may cause bug in FF browsers, as the instanceof operator will
return false after overwrite even if the same source is loaded.