Handle empty result from code lookup.

We've seen exceptions here.
Add logging and error handling.

Need to tolerate failures in lookup of verification codes.
Merge branch 'master' of github.com:SUNET/eduid-dashboard