Allow ExtraFieldValue::get_item_id_from_field_variable_and_field_value() to return the last value instead of the first - refs BT#8392