Branch.xs: upstream() should return undef if there isn't one