Fixed cache issue with object without relations that is accessed directly