webui: avoid crash if remain is NULL