Fixed call on non-object, refs #5353