Only purgeID on ReactDOMComponent unmount

Fixes #1567