make get_value return a definate value

minor changes to return vs goto

Signed-off-by: Michael Leibowitz <michael.leibowitz@intel.com>