Fix crashes when parametric plots are made with less than two scan
variables.