Protecting every call to current_term in CoqIDE so that callback
will not raise an exception if there is no opened tab.

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16637 85f007b7-540e-0410-9357-904b9bb8a0f7