[T2991] Raise userError when perception doesn't have state configured and it is necessary

Merged Macarena Meldi requested to merge T2991 into 15.0

Merge request reports