Prevent message box crashes due to corrupted or missing data dir.

Delay factories debug tests after all the subsystems and resource paths are added.
Register MessageBox object factory.