Fix for #33: null in attribute value

Hello, take a look at my patch please

Karim