Update metadata.js

Don't process non-existent tokens
Merge pull request #1 from tsukiennik/patch-1

Update metadata.js