fix indentation error from scan-sexp in erlang.el

Fix an indentation error being returned by scan-sexp, and add a new
indentation test case for the error.