Fixes uncaught exception on Add Monitor when unable to retrieve pools

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

Fixes: bug #1152770

Change-Id: Ic13db9ed87b2600357b0568ff6d01ef0fe28451c
Merge "Fixes uncaught exception on Add Monitor when unable to retrieve pools"