Avoid trying to set values that are null

parent 3b108a7c
Pipeline #31297 failed