Fixes IllegalStateException in the case DocumentValidator gets initialized more than once.