Added null check in case http connection used and no cert found.
Merge pull request #8833 from jhawkesworth/win_facts_powershell_version_and_winrm_cert_expiry_revised

Revised additions to windows facts