adg: protect autoscale() from NULL scales