Fix the --png utility command.

Closes #6845. Regression was introduced by #6758.