Fix exceptions thrown in parseModFile
Merge pull request #519 from godarklight/modcheck-errors

Fix exceptions thrown in parseModFile