Correct popstate history re-write logic
Correct popstate history re-write logic

Errors were occuring when using the slider with the popstate function, besauce event.OriginalEvent.state was null, which was erroring as it doesn't have a properly 'style'.

Add an additional check to confirm object exists before checking it's contents.

Works with remove-graph, back-button usecase, and slider resizing.

glasnt/machiavelli,machiavellian/machiavelli,glasnt/machiavelli,machiavellian/machiavelli,machiavellian/machiavelli,glasnt/machiavelli,machiavellian/machiavelli,glasnt/machiavelli