Fixed #5941 (ValueFlow: Wrong value in subfunction under ?)