Fixed undefined index for path and query on validate url
Merge pull request #6 from alquerci/fix_indefined_index

Fixed undefined index for path and query on validate url