Fix 1571 : Custom OData Actions do not respect 204 return values

Fixed the null reference exception happens on
response.Content.GetType().FullName
Fix for both v3 and v4.