Fixed Jest/Elastic null pointer issue: Unable to log