Merge pull request #1436 from am11/master

ProjectHelpers: Fixes #1429
Code: Rescue from NullReferenceException.
Fixes: #1434.
Merge pull request #1427 from DotNetSparky/nullfix

Fix NullReferenceException error during build when looking for CompileOnBuild settings.
HTML: Fixed type ambiguity issue in CI builds