buglist 7142 exp^log(x) Cannot take first of an empty list update

(1) -> integrate(%i^log(z), z)

            log(%i)log(z)
        z %e
   (1)  -----------------
           log(%i) + 1
                                Type: Union(Expression(Complex(Integer)),...)

(8) -> integrate(exp^log(z), z)

   >> System error:
   Cannot take first of an empty list