correctly handle cases where a dependency does not have a `version` property because it is either missing or invalid (cherry picked from commit a0915036f9) Co-authored-by: Shahar Mor <shaharmor1@gmail.com>
a0915036f9