better handle empty file errors from mask cutting helper