[emacs] ad-advised-definition-p fix for latest emacs version (25.x.x)