Core: fix cookie access (#696).

When `Cookies.get()` is called outside a request scope no exception is thrown. Instead an empty `Cookies` object is returned.

See #696.