Index: tableheader.js
===================================================================
RCS file: /cvs/drupal/drupal/misc/tableheader.js,v
retrieving revision 1.16.2.1
diff -u -r1.16.2.1 tableheader.js
--- tableheader.js	1 Oct 2008 23:30:36 -0000	1.16.2.1
+++ tableheader.js	31 Jan 2009 07:42:31 -0000
@@ -70,8 +70,10 @@
     // Get the height of the header table and scroll up that amount.
     if (prevAnchor != location.hash) {
       if (location.hash != '') {
-        var scrollLocation = $('td'+ location.hash).offset().top - $(e).height();
-        $('body, html').scrollTop(scrollLocation);
+        if($('td'+ location.hash).length > 0) {
+          var scrollLocation = $('td'+ location.hash).offset().top - $(e).height();
+          $('body, html').scrollTop(scrollLocation);
+        }
       }
       prevAnchor = location.hash;
     }

