Fix fatal errors on plugin network activation. Fixes #51