Fix RT #78817.

Warning for call to lc with undef.