rhbz1008251 - filter out invalid text flow target in TM result

To solve lucene index being slightly out of date comparing to actual database state