cli: fix final stat line handling of optional PSNR and SSIM stats