Fix crash when date missing