newdb: Fix edit metadata dialog not showing undefined dates correctly