Make sure api-response is defined before parsing

Whoops.