Bug 913171 - Fix intermittent browser_thumbnails_background.js by finishing captures only after thumbnails are written. r=markh