depgraph: Improve mismatch checking (bug 505944)

Make sure dep.atom and dep.atom.unevaluated_atom is set to something
before checking for mismatch between them.

This fixes a known bug where a typo like 'emerge -pvuDNworld' would
produce a traceback if the user had a resume list.