Fix null model bug with hasMany, 0.5.1