Avoid trying to get components of nil date