Fix for restoring focus after push and deleted elements

Focus was not always restored when new items were created, since it required that the item had got a new scroll-position (which wasn't always the case). Also added an extra control to avoid error when trying to restore scroll for an item that might no longer exist.