fix error when dragging with mouse outside of window, check if classList is defined for target
fix error when dragging with mouse outside of window, check if classList is defined for target

whoisandy/react-rangeslider,whoisandie/react-rangeslider