Fix (#12) handler error in GetCastByType api

handle error in GetCastByTypeController and its js file