SI-7385 crash in erroneous code

Less crashing, more emitting errors.