Fix validation problem with relative object names.

Refs #5925