Fixing NullReferenceException when returning value from intercepted method