ask_for_password output buffering support

If output buffering is enabled by config.php or one of its includes, the password prompt disappears. This commit fixes this.