Fix timeouts when selector has zero dimensions and loki hanging when there are many errors (#101)
Fix timeouts when selector has zero dimensions and loki hanging when there are many errors (#101)

* Close the tab if there was an error when capturing a screenshot

* Throw error immediately when selector has zero width or height instead of timing out

* Move return statement for clarity. Fix linting issue

oblador/loki,oblador/loki,oblador/loki