Fix incorrect error on loading nonexistent plugin

I haven't tested this too thoroughly, but it does seem to fix #546.
At the moment, I'm not sure if there are any other distinct ways to cause ImportError on load.