Fix exception when itemMetaEl.text() is null

JSON.parse can return null if null is passed to it. Which would cause later lines to throw an exception when using dot-accessing.