Do not crash with out of range value for slider

Obviously it’s invalid and silly, but crashing is always bad.