Forbid to delete the jail if a plugins exists

(cherry picked from commit 0b4ed1cba38afe6bc6c561eb656872adcfa63356)