luci-base: network.js: simplify rpc error handling