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