Added a safe check against incorrect URLs.