WritableStream: Clear resolving functions

By making sure resolving functions are cleared on resolve/reject promises, we
can detect bugs.