Fix crash when restoring a project which contains an unrecognised
plugin