Fixed typo and slightly improved error message when db is missing time zone definitions.

Refs #21432.