Added check for dictionay in parseHref

Added a check to make sure the passed in dictionay is really a dictionay
in the parseHref function.