[Bug 47343817] fix bug.

  When create or update a candidate, if input validate fails, then the
  departments and openings dropdown list becomes blank.
Merge pull request #65 from Chunjie/master

[Bug 47343817] fix bug.