Prevents duplicate element ids (#15191).
Authored by: jplang 2013-10-26
Parent: [r12235]
Child: [r12237]