handling nil dates more gracefully