Fix incorrect function name.

Refs #6107
Fix missing variable assignment in Zone::CanAccessObject().

Refs #6107