Do not apply empty namespace-weitgh-cache

Libmastermind will ignore a namespace from get_group_weights if that
does not have couples with positive weight.
That means, libmastermind will use outdated cache for that namespace.
Version up to 8.21