Send data about erased nodes to Nailgun

* fix code;
* add test.

Change-Id: I19eafbb0fb3d82536a1e19f1a46b7d5fddbef086
Closes-Bug: #1319823