Closes SI-6952: add correct error positions for Dynamic feature check.

Review by @adriaanm.