Fix the bug when no "sorthead_xxx" exists in page (add condition to the
init JS code).