Only attempt to open file if property set. Refs #8599.
Merge branch 'feature/8599_improve_python_hist_script' into develop