[Issue #1025] Adding check for nil responseString in responseJSON

Signed-off-by: Mattt Thompson <m@mattt.me>
Refactoring conditional in responseJSON to avoid unnecessary nil-ing of responseJSON