Don't call JSON.parse on a null object.