Fixes undefined error in `plugin.dependency`

I'm not familiar enough with the code base to figure out how to cover this typo. All current `plugin.dependency` tests pass for some reason but it didn't work in my project. This patch fixes the typo.