fix(db): elgg_get_metastring_id should always create an id

fixes #7579
Merge pull request #7590 from jdalsem/metastring-id-fix

fix(db): elgg_get_metastring_id should always create and id