controller: check for zero notes at deletion.

See 731398