Fix for issue: https://github.com/scrapinghub/splash/issues/47