Port a potential database corruption fix in the installer to 1.x from 2.x branch.

When converting dates, abort if the old value has already been converted to an integer from a database timestamp.
This avoids potentially wiping out dates quietly within the database.