ebtables_get_chains: deal with empty chains