core: Check Host arguments in EneergyManagement

Fixed Host argument check before executing Ping, NSLookup, Traceroute
core: Style fixes for previous commit

Signed-off-by: Jens Georg <mail@jensge.org>