Fixing null reference on UrlExtension getfriendlyurl