Issue #1190466 by pwolanin: fix for Call to undefined function admin_menu_exit() breaks some drush commands.