Clarify error message for external functions misuse in model block.

Thanks to Johannes Pfeifer.

(cherry picked from commit cebed5435f2d3fac8935fa72af4f8d3bd37019f0)