genertor: do not raise error when accessing undefined property