[Bug 47343817] fix bug.

  When create or update a candidate, if input validate fails, then the
  departments and openings dropdown list becomes blank.