Issue #1537184 by brad.bulger:Fixes undefined index errors for validate_url