Fixes undefined error in
Merge pull request #1719 from alexgorbatchev/patch-1

Fixes undefined error in `plugin.dependency`