one more fix for getVersion() returning NULL (d5898054ba)

Add a missing check in StdlibRelease::cleanup() which led to
a semver exception.