Some cleanup for issues with legacylogger

Primarily, this adds a check to make sure the class exists before trying to use it. It should be there, since it has been addMap'ed to the loader, but obviously it isn't.

Also re-evaluated where the Xoops\Core\Logger is instantiated, moving it ahead in the process a little bit.