Add defaults for metadata to avoid JavaScript errors