COOPR-660: Resolve "invalid input" issue

Adding null guard for versions.