bugfix for networks variable

* assigned networks variable to None before reference

Change-Id: I0c0e54e41a7cf2bca531e2608078b67b6485c402
Merge "bugfix for networks variable"