Fix indirect-select error when grid body goes empty