138_health_ping_endpoints: refine condition check and cleanup garbage