Add node clearing when refreshing diff window

Nodes would have accumulated blocks, had the nodes not been cleared in
the refreshform method.