Fix error for application Procedure type values

Removal of top-arr in the internal representation changed
the error message and we didn't have a test for it.

Closes PR 14601