<div class="<?=$this->cssClass?>">
    <ul>
        <li><?=$this->componentLink($this->login, $this->data->trlKwf('Login'))?><?=$this->linkPostfix?></li>
        <li class="register"><?=$this->componentLink($this->register, $this->data->trlKwf('Register'))?><?=$this->linkPostfix?></li>
        <? if ($this->lostPassword) { ?>
        <li><?=$this->componentLink($this->lostPassword, $this->data->trlKwf('Lost password'))?><?=$this->linkPostfix?></li>
        <? } ?>
    </ul>
</div>

<div class="<?=$this->cssClass?>">
    <ul>
        <? if ($this->login) { ?>
            <li><?=$this->componentLink($this->login, $this->data->trlKwf('Login'))?><?=$this->linkPostfix?></li>
        <? } ?>

        <? if ($this->register) { ?>
            <li class="register"><?=$this->componentLink($this->register, $this->data->trlKwf('Register'))?><?=$this->linkPostfix?></li>
        <? } ?>

        <? if ($this->lostPassword) { ?>
            <li><?=$this->componentLink($this->lostPassword, $this->data->trlKwf('Lost password'))?><?=$this->linkPostfix?></li>
        <? } ?>
    </ul>
</div>

Add check to template if components are not set
Add check to template if components are not set

Now every component (register, loginLink and lostPassword) are optional therefore they should be only conditional in template
