Slider: Fix to restrict handle values when set programmatically. Fixes #3762 - Slider: handles not restricted properly when set programmatically