bug 1044125 - Only capture screenshot and show overlay when edge gesture...

...s are in use or task manager is used. r=alive
we need the same kind of hardening than on `hideScreenshotOverlay` here because for certain types of window this.screenshotOverlay is null