Fix the undefined index 'id' in case of error
Merge pull request #7 from neofly/neofly

Fix the undefined index 'id' in case of error