TaskAPI: Fix crash on missing test tool

The patch fixes the crash in case of missing test tool on slave machine.
Without the patch the controller crashes with an exception because 'cmd'
is undefined.

Signed-off-by: Jan Tluka <jtluka@redhat.com>
Signed-off-by: Jiri Pirko <jiri@resnulli.us>