[PD-842] Adds a validation error if no location is added

The placement of the error depends on the template itself, hence why this is based on top of pd-844 instead of master.