discover: Fixed the profile never being parsed and added handling of profiles without a links section.