bandwidth: fix panic in tests
bandwidth: fix panic in tests

Check error before using return value

Signed-off-by: Shengjing Zhu <2dd997cfa01a89f57dd2ea7f2dd61043cc88e07b@debian.org>

containernetworking/plugins,containernetworking/plugins