Error handling in ParserInterpreter

This should fix #388, but we should verify for a larger set of inputs.