UI: Invoke callback at a proper time when preloading thumbs. Follow up on #822.