Fixed empty attr handling for networks in EC2

We have to be careful when handling optional attributes, those
should never be read directly from deep hashes or accessed via
the attr['a.b.c'] notation.