Add a check if ValueType on returnResult before testing null

Actually, we cannot return a struct as our model, it fails when testing null at line 46...so let support struct (well suited for ViewModel).
TODO : Checked that it works with a JSON response (with JSON.net ?)