OprhanProject fixes + Syntax Errors Handler fixes

Removes calls to XDocument.Load and XDocument.Save in the OrphanProject.

Fixes issue with syntax errors handler when performing syntax checking on a newly created file.