Add useless statement check after ERROR statement
Add useless statement check after ERROR statement

Also fix a bug in which a useless statement error could have
been erroneously reported for DEF.

Signed-off-by: Mark Ryan <88ffc4093c40652fbbf052f026a8b6147509f0aa@gmail.com>

markdryan/subtilis,markdryan/subtilis