Updated the tab printing javascript to handle anchor tags without
href attributes.