cassandra: Ensure correct branches count in snapshot_get_branches
Due to the client-side filtering of branches returned by the CQL runner, the number of returned branches could be off by one or greater than the requested branches count.
So ensure to return the correct number of branches when filtering by target types for instance.