codeintel: ignore send messages when not enabled

(integrated from master branch change 0e55432 by Todd Whiteman <toddw@activestate.com>)