XWIKI-10935: Recurrent stacktrace after having deleted a wiki
* more bulletproofing