fix(db): elgg_get_metastring_id should always create and id

fixes #7579

TODO:
 - [x] Add PHPUnit test case for MetastringsTable
 - [x] Fix typo in commit message