Unbreak netconsole

Check whether or not port is actually defined so we don't hit
an exception (None != undefined). Don't try to use self. from
nested classes or closures

Change-Id: I546bd4da86f6aa5a3ea8f6c3877582519d6ceb88
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1119566
Signed-off-by: Ryan Barry <rbarry@redhat.com>