Convert invalid raise statements to correct syntax

Related-bug: #3 (item 2)