Added another error check for unterminated "${" expansions.  Also added a test case.