strip out null values before parsing xml