Improved error message in PackagedProgram for preview plans.
Fixed pre-packaged end-to-end test.