core: fix NoMethodError in Vagrant.has_plugin? [GH-1736]

This should fix the error raised new `Vagrant.has_plugin?` method

It's my first submission to this project; tried to do my best to follow all the conventions I saw. Happy to make any changes as necessary though.