Make takeScreenshot wait for DecorView as requested by issue-434
Bugfix for issue-435