Use NULL for invalid reference in formula instead of ignoring #2289

Ignoring entire formula because one of its reference was invalid lead
to severe error, basically ignoring a lot of Estimates/Ratios, as
reported by Fred. Amongst many, this was the case for Afghanistan,
Improved + shared, Rural.

Also test data now include two more countries for wider cover of
non-regression tests.