shared: Fix cli_get_value when not passing layer

Signed-off-by: William Douglas <william.douglas@intel.com>