Fix the drush error casued by the page redirection in hook_init