Correct a bug in get-status-stats

Allow a status containing another one not to be counted twice.

Signed-off-by: Kévin THIERRY <kevin.thierry@open.eurogiciel.org>