Better guarding for screenshot grabbing

If the page is not active do not allow grabbing.
[sailfish-browser] Fix failing WebView unit test
Merge pull request #252 from rainemak/fixFailingUnitTest

Fix failing unit test