Fix calculation of number of units with critical errors
Improve double_quotes_in_tags check

There were false positives when a source string doesn't contain tags and
tags with double quotes are found in a translation string.