Code refactoring

Second call to responseData sometimes gives nil value which throws exception in JSONObjectWithData:options:error:. This is attempt to fix this problem.