Don't log until we know we have an affiliation

Fixes #73 
Also (and an even more pathetically minor point) string concatenation implicitly calls toString(), so in `affiliation.getType().toString()` the `toString()` is redundant.