Account for empty pid.