Index: link.module
===================================================================
--- link.module	(revision 3250)
+++ link.module	(revision 3251)
@@ -373,7 +373,7 @@
     $url = substr($url, 0, strpos($url, '?'));
   }
   // Save the new URL without the anchor or query.
-  if ($field['validate_url'] === 0) {
+  if (!isset($field['validate_url']) || $field['validate_url'] === 0) {
     $item['url'] = check_plain($url);
   }
   else {
@@ -442,7 +442,7 @@
     $item['attributes']['rel'] = str_replace('nofollow', '', $item['attributes']['rel']);
   }
   // Some old field data may have $element['#item']['attributes']['rel'] as an array, which will cause errors:
-  if (is_array($element['#item']['attributes']['rel'])) {
+  if (isset($element) && is_array($element['#item']['attributes']['rel'])) {
     unset($element['#item']['attributes']['rel']);
   }
 
