Fixed error in slug correction
Catched error when prediction.io is not available