fix domain check in canonical uri
fix warning on URLs without Itemid