Fix NPE in DateField range handling (#15342)

The NPE was introduced by 206055708b0a8e1c17a8c63d482a5e202d3ebf6d.

Change-Id: I34401e108f7c02ee2f0aab581a78b9ab468b2b46