core: fixing NPE in CommandBase

Change-Id: If3daf13b840c38567755a79b963f159d4789d441
Signed-off-by: Eli Mesika <emesika@redhat.com>