Add error recovery for statements and if-conditions