Fixing NPE when dumping attribute with null value.