XWIKI-11554: After deleting all entries, you can't create a new one
- Excluded the template when deleting entries

(cherry picked from commit 33e45c35fec3d8449a90191acdac3a9ad29da119)