CRM-13806 - Only accept valid profile urls

http://issues.civicrm.org/jira/browse/CRM-13806
Merge pull request #2062 from dlobo/CRM-13806

CRM-13806 - Only accept valid profile urls