Pattern generation : avoid the nan value for the coverage when no more tracks are available