Restore duplicate resource name check.

Refs #1996