fix bug in has_shortcode footer_hook