The current through a device, which has infinite, periodic atomic structure in the directions perpendicular to the transport direction, is calculated through the lateral unit cell of this periodic structure. Even so the total current is infinite, it is however finite per lateral unit cell. The current density is then defined as the current per lateral unit cell divided by the lateral unit cell area, and that is equivalent to the definition given in #2 in the post by Daniele.
In other words, if we calculate the current density as the total current through N-lateral unit cells divided by the total cross section of these N lateral unit cells when N->infinity, the obtained current density is finite, while the device cross section is infinite indeed.