added missing null checks
added CA1062 'Validate arguments of public methods' to ruleset
added test ruleset with CA1062 omitted
Merge pull request #480 from adamralph/null-checks

Added missing null checks