Make error handler check whether Bundler is used