Do not compact before checking minItems

Fixes #129
Merge pull request #140 from pd/minitems-nils

Do not compact before checking minItems