Protect screenshot capture if the GUI is not present.

Refs #9521