[FIX] web: possible issue with name_search in m2m tags widgets

Haven't actually managed to reproduce it, but if the issue is the blacklist
method possibly returning ``null`` (or ``undefined`` serialized to ``null``)
we can just check the result and only use it if it's non-null.