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
Add tests for new windows facts.
Added null check in case http connection used and no cert found.
Add tests for new windows facts.
Merge remote-tracking branch 'upstream/devel' into devel