fixed integration test as with_items always returns a list, even if
empty
Merge pull request #9717 from bcoca/fix_integration_test_with_conditionals

fixed integration test as with_items