Osc: Fix function that hangs when plot is not running or has no markers