Set quality flag properly for Tophat alignment.

Thanks to @mjafin.
Merge branch 'tophat-quality-fix'