Protect against double-wrapping other plugins.

Fixes issue #2.