Fixed NPE when printing an attribute diff with null value

Fixes #490