Fixed problem when an invalid network controller is found

Signed-off-by: Irmo van den Berge <bergerkiller@gmail.com>