[Improved assert for #3457] provide helpful assertion if needs is specified but no container is present.
Merge pull request #3458 from stefanpenner/improved_needs_assertion

[Improved assert for #3457] provide helpful assertion if needs is specified but no container is present.