Handle missing payload instead of blowing up
Handle missing payload instead of blowing up

when incorrect payload is provided, params.clone returns nil,
which then results in a call to delete metod on nil object.
Check if value is nil and return and empty parameters list in that case.

Netflix/restful-jsonapi