fixed patient search bug when running with YII_DEBUG == false