Fix bug with exclude patterns and uncovered code

Fix of bug when LCOV/GCOV exclude patterns are used in
not executed code lines or not executed exception handling.