SoftwareSpec: set resource version when missing

Closes #24695.