Prevent WSOD on duplicate vocab name

relate to issue #1364. PR against the 3.x branch.