Follow on to r1642697.
Only currently running contexts should be returned.
Handle the case where the mapper returns an unwanted  non-exact match.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1644989 13f79535-47bb-0310-9956-ffa450edef68