Fix bug in PopupDateField where locale was retained incorrectly if
changed while popup was open (#12153)

Change-Id: Ib4bebab8c6e75e7f1af7cfc5198ab6516e94a45e