Don't break compatibility with paredit 22.

Adds a check to see if the function paredit-check-region-state is
defined.  If it is we will rely on the old behavior.