Prevent invalid free when props pointer is uninitialized
It can happen that there are no properties for an element. In that case props will be uninitialized pointer and shouldn't be freed. Issue was detected in https://github.com/f3d-app/f3d/issues/1917