acu157387 fix missing_inputs returning nil for empty result set