JSONAPI Serializer bugfix

A relation can sometimes be set to null. In JS, `typeof null === 'object'`, and
a condition wasn't taking that case into account, allowing `Object.keys` to be
called on `null` (non object).
Merge pull request #41 from tute/master

`null` relation raises exception