When it is impracticable for the respondent to be present at the hearing because of mental incompetency, the attorney, legal representative, legal guardian, near relative, or friend who was served with a copy of the notice to appear shall be permitted to appear on behalf of the respondent. If such a person cannot reasonably be found or fails or refuses to appear, the custodian of the respondent shall be requested to appear on behalf of the respondent.