When all terms are removed, ensure the last entry is deleted
When all terms are removed, ensure the last entry is deleted

Closes #505

damien-biasotto/croogo,rakeshtembhurne/croogo,delkyd/croogo,damien-biasotto/croogo,Wouter0100/croogo,rchavik/croogo,Wouter0100/croogo,delkyd/croogo,xintesa/croogo,cvo-technologies/croogo,Wouter0100/croogo,rchavik/croogo,xintesa/croogo,xintesa/croogo,rakeshtembhurne/croogo,cvo-technologies/croogo,delkyd/croogo,cvo-technologies/croogo,rakeshtembhurne/croogo