[Issue #308] Fix infinite loop on `sp-get-enclosing-sexp`