ENH: add a warning on empty mask