coverity: fix warnings found with Coverity in nm-applet/nm-c-e

https://bugzilla.redhat.com/show_bug.cgi?id=1025894#c3

Signed-off-by: Thomas Haller <thaller@redhat.com>