ServletWriter - adding item to task queue before setWriteListener(...) is called

- solves the issue when onWritePossible() is invoked right when registration is done and from the same thread. Current implementation will leave the task in queue until next one arrives.