discovery: Fixed the profile never being parsed and added handling of profiles without a links section.
Merge remote-tracking branch 'waldheinz/fix-discover' into rc3