ProjectHelper: Rescue StackOverflow exception.
Fixes #348.
Merge pull request #351 from am11/master

ProjectHelper: Rescue StackOverflow exception