Don't invoke bundle if methods promise is warn-only.

However, do invoke the bundle if the agent run is a dry-run.

See Redmine #5924
Merge pull request #1860 from vohi/redmine/5924

Don't invoke bundle if methods promise is warn-only.