Raise an exception if a placeholder doesn't a substitution