Fix #14101: $().data() should be undefined, not null

- Backported 30eee925dbc9f8d465ccf064f48c24061ffdc378 for 1.x