Fixed -WhatIf wireup
Tweaking environment validation rules

Not all endpoints are required, but if they are present they should be
valid uris. Previously everything was considered required.
Merge pull request #3015 from christav/repair-whatif

Fixed -WhatIf wireup