[matchtags addon] Don't match tags when there is a selection

Closes #1802