This happens when you want to create pretty clear image so you select to join the computer at the workgroup.
If you build and capture without application and/or updates install then everything works fine
Based on this great explanation the reason why you get this error is that leaving computer in the workgroup there is no way you can communicate to the distribution point so you can not install applications.
To use configure manager beautiful futures you still need to join the PC into domain:
To keep the image clear from various settings you have to isolate all policy inheritance
Make sure the selected application is allowed to deploy via task sequence
As a good new we can still see that before capturing image the station has automatically joined back to workgroup :)