Avoid loading plugins that have had their code wiped from filesystem, fixes #3115, closes #3538