Fix invalid sexp returned if the point is at bobp/eobp
Fix bug when "|def if end end" would erroneously report the opening delimiter as "if".