BUG-2097 hosts not seen in topology.

Fixed NPE when a topology with a null list of links was checked.

Change-Id: If3b6a8f0aeb623c4bd78d41e2d812a2d3720a6d5
Signed-off-by: André Martins <aanm90@gmail.com>