Safety check when trying to draw gcode.