PIM-1532 : fix issue with metric export without data