[Code Review Fix] Restored undefined & null check for listBoxInfo

Restored undefined & null check for listBoxInfo.