CRM-14851 - Validation of profile type for on behalf of profiles was che...

...cking the wrong profile.

----------------------------------------
* CRM-14851:
  https://issues.civicrm.org/jira/browse/CRM-14851