cherry-pick of Davanum Srinivas' patch 97de4f3
make not selecting network_ids a safe operation
KNIFE-368 merge