Fix parsing of plugin versions, where plugin version is not present, but there is a dependency, which has a version specified,
 and the current code incorrectly copied that version is the correct one, instead of failing.