Moved the store validation to the worker thread.

In this way, the `IllegalStateException` that's thrown when the
validation fails will be delivered to the error handler of the request
rather than stop execution.