[webui] avoid crash if the statistics can't be fetched