On the maximum average degree and the incidence chromatic number of a graph