$.wikibase.entityselector: Factored out _termMatchesLabel()

Change-Id: I92506c84238392c28b8f3109b88471ec718cbd8a
Merge "$.wikibase.entityselector: Factored out _termMatchesLabel()"