Fixed nullPointerException when the Json reply was null