try catch for JSON.parse in MediaWiki.ts