ParenDelim: improve smart_matchpairs handling

* move the check up
* only handle it when smart_matchpairs is configured (default)