[MAGEMEP-114] Fixing empty array exception on Format