Fix hasMany with zero models

When a hasMany association is eagerly loaded, and there is 0 related models in the datastore,
sequelize throws an error from trying to access properties on null.

This fix checks for a null value, and if so skips calling toLowerCase on it.