Make sidebar position script run only when sidebar exists.
Remove flash of unstlyed text.