Fix WeakMap delete

Fixes #5
Sync with SVN 5657
1.0.3