CRM-13806 - Only accept valid profile urls

http://issues.civicrm.org/jira/browse/CRM-13806