Prevent web UI from crashing on empty index