updated to NuGet 2.7
added missing guard clauses
Merge pull request #454 from adamralph/guard-clauses

Updated to NuGet 2.7 and added missing guard clauses