Defend against null dates