Better error message for semicolon on the last line of a function

closes #8005