Correctly format missing Pillow/PIL exceptions messages. refs #19934