screenshot: do not segfault when taking a window picture with no delay
Merge pull request #40 from NiceandGently/master

screenshot: do not segfault when taking a window picture with no delay