gdatetime: Remove an unnecessary NULL pointer check