Handle null hasMany relations in _joinedResultsToJSON
Merge pull request #2 from mateomurphy/patch-1

Handle null hasMany relations in _joinedResultsToJSON