handle missing permalinks gracefully