core: More informative error if plugin.json parsing fails