If no subnet on network, don't try to iterate on None

Closes-Bug: #1386382

Change-Id: I96f765195ff431d6a1f32235a98b005dce095009
Merge "If no subnet on network, don't try to iterate on None"