ParenDelim: improve smart_matchpairs handling

Rather minor, but I came up with this, while debugging something.

* move the check up
* only handle it when smart_matchpairs is configured (default)