Fix 'Invalid argument supplied for foreach()'

This warning appears in ResponseLocation\JsonLocation:36 when response body is empty.

Tests fail in hhvm environment not only on my branch so as on master. In other environments they pass.