Added a missing exit statement making drupal run drupal_page_footer() twice