Fixes #81831, a check was missing.
Merge pull request #75 from luisromangz/8.4-SNAPSHOT

Fixes #81831, a check was missing.