Guard against negative slot indexes.  Fix crash with Botania (but still doesn't work right)