Raise error if CANONICAL_URL env var is missing in production
Check for presence of kind attribute before setting it