Attach (recommended) or Link to PDF file here:
[occurmin0.pdf](https://github.com/mozilla/pdf.js/files/7340277/occurmin0.pdf)

Configuration:
- Web browser and its version: 95.0a1 (2021-10-13) (64-bit)
- Operating system and its version: Windows 10


Steps to reproduce the problem:
1. Open form in pdf.js

What is the expected behavior? (add screenshot)
Form is blank (subform `nomin`  does not display)
What went wrong? (add screenshot)
![image](https://user-images.githubusercontent.com/7104454/137184675-d48027c0-1f17-4faa-bc97-b45814b38e36.png)

subform `nomin` displays, even though it's subform is set to `<occur max="-1" min="0" />`

/* Copyright 2021 Mozilla Foundation
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
import {
  $appendChild,
  $clone,
  $consumed,
  $content,
  $data,
  $finalize,
  $getAttributeIt,