Fixes uncaught exception on Add Pool when unable to retrieve networks

Variable instantiated in a try block referenced outside even when
exception happens in the api call that instantiates the variable.

Fixes: bug #1153736

Change-Id: I75d11f42f30621e9be61aaeef64ebe181fad1bf0
Merge "Fixes uncaught exception on Add Pool when unable to retrieve networks"