Add simple error catching

This code will stop the service falling over when a domain is used that
has no corresponding aka domain.

It is not particularly nice, but it keeps it running and logs the
problem.