Only attempt to open file if property set. Refs #8599.