WritableStream: Clear resolving functions

By making sure resolving functions are cleared on resolve/reject promises, we
can detect bugs.
Although maybe add a comment explaining how they are useful to detect bugs.