Somethings the card is updated without kanban_state_id, no root caused yet, add some codes to protect it
Fix 2 issues, one typo in controller and another one in javascript which cause popup card crash