CRM-13593 api chaining - fix mulitple entity chainging

----------------------------------------
* CRM-13593: chaining multiple object with the API is broken
  http://issues.civicrm.org/jira/browse/CRM-13593