Apollo: add error handling to a invalid file.

*  can occure if you make changes to the file itself
* JIRA: BUGDUMP-1050

Change-Id: Ia8215c3643b1eb7f8b5786eeb8267340b673939c