I am able to reproduce the issue with the given steps.
There is an issue and ...

Contribution Date
Technology
Contribution Project
Contribution Details

I am able to reproduce the issue with the given steps.
There is an issue and both patch and MR works well.
The published date field is a non-required field, If you create an unpublished node, The value of the field gone null which will encounter the error.
Adding Screenshots.

Issue Status
Reviewed and Tested by Community
Contribution Author
Files count
2
Patches count
0