Improved helm-dictionary-transformer.

* Removed the redundant loop over the candidates.
* Added a sanity check for the candidates to avoid a complete failure when an
  entry is malformed.