Fixed undefined index 'script' error in SentencesController->random()