[BUGFIX] Prevent exception when registering same ext/class again

On activating an extension in extension manager the ext_localconf.php is
loaded again so the same file extenstion + class name is registered
again. This patch prevents the exceptions when this happens.