Undefined field access handling and logging