Fixed NPE when printing an attribute diff with null value

Fixes #490
Merge pull request #506 from volaya/diff_exception

Fixed NPE when printing an attribute diff with null value