Check whether the MSI provider is installed, and don't try to query MSI if not

This is to address #4522 - test for the presence of the WBEM class that manages installed MSI packages before trying to query it, so that the exception occurs in a predictable place.