Remove logging of values which might be null, causing NPE

Fixes #334 and #326