Throw error when accessing uninitialized property of partially loaded entity
check if there is a stacktrace before trying to read it