Fix crash when deleting the last site entry