plan_sweep tests for invalid and empty ranges
plan_sweep, SweepDevice fix for invalid and empty range