Add exception when getting extension name from url

No match.