Update graphviz.rb

Handle undefined attributes