[fix] Only write a parser file when the update was successfull and NO errors.

This hopefully fixes #30, I couldn't find anything else that would cause this
behaviour as it's already pretty sandboxed.