Fixes #2756: Added support for injecting custom `isEmpty` check for all validators