Sped up compute_restrictions_BList by checking for empty cube before
checking scalar values.