Fix detailed printing of query matches (bnc#853167)
changes 1.8.19