Fix bug 404461 to respect service.ranking when getting IContextFunction
OSGi services