net: dsa: fix a crash if ->get_sset_count() fails