[rake] Fix catching errors in Rakefile before bootstrapping.