Remove panels from sidebar, which were added for blocks previously,

before adding panels for the currently activated blocks. Before this fix. panels were added everytime a block was activated but never removed.