Fix crash on time dialog rotation.