Prevent WSOD on duplicate vocab name (3.1)

Relate to issue #1364. PR against the SCHOLAR-3.1 branch.