Avoid error when createSticky if sidebar is hidden