Fixes re-ranking of containers after deletion which would leave an empty container in tabbed or columned container views [#1108 state:resolved]