Fixed a couple of bugs when validating whether a user has plugins
installed