Element#data() should return nil for undefined attribute