Fix ensure in linear_equations_4

The data-ensure wasn't working because NUMERCOEFF wasn't defined at the time that the ensure was being run. Moving it a bit earlier fixes things.

Fixes #58048.

Auditors: peter