Fix _DateTimeTextBox missing params issue.

If a _DateTimeTextBox (DateTextBox or TimeTextBox) instance is created
without any parameters passed, an error is thrown because `params` is
assumed to exist.

Fixes #18243.

(cherry picked from commit ab4da255d0d839532f8a02826c6601dc43eacb81)