Fixed canonical URL issue when K2 advanced SEF is enabled.