Fix test for existing workspace in dgreduce.py

Refs #8057