Fix crashes when starting catalyst or loading a plugin - #18015