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

This fixes the fix for issue #378 and prevent failure when encountering webfinger profiles missing a `links` section.