Fixed exception caused by empty array returned by ma.compressed()