Adds delay if there's an error on cookies.getAll

There's [a bug](https://code.google.com/p/chromium/issues/detail?id=113994) in Chrome where on startup sometimes cookies cannot be retrieved.

This code gives it 5 seconds to boot up before causing an outright failure.