Fix parsing of plugin xml

 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.