[BUGFIX] callApi function not using response parameter

Use response parameter as reference as otherwise there isn't any
information.

Change-Id: I30f187b37a200893a4310bf1691fa09db485a8c6
Reviewed-on: https://review.typo3.org/26733
Reviewed-by: Nicole Cordes
Tested-by: Nicole Cordes