Fixed traceback-related bugs

- Fixed Yii error handler bug