Bug fix for mask objects without a 'buffer' attribute.