Bug 50474: Remove children of references node

Make sure we don't keep old references content around on re-render.

Change-Id: I79ad1e5d69ebb506078fa5903d1ff78b6ff82433
Merge "Bug 50474: Remove children of references node"