Mask-mode formats: Add missing error handling.