[graph] More explicit error message if dot is not found (closes #253516) [applied]