fix(core): prevent sql exception when metastring is interpreted as very ...

...large number in egef_metadata

Fixes #7009
Seems a sould be A ```assertIsA```
http://simpletest.org/api/SimpleTest/UnitTester/UnitTestCase.html#assertIsA