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

...large number in egef_metadata

Fixes #7009
The assumption is that PHP's is_numeric() will recognize values that MySQL will see as numeric. Are we certain this is sufficient? Ie that there aren't values that aren't "numeric" for PHP but will be interpreted as numbers in MySQL?