Minor bugfix for running aggregate on views.
Minor bugfix for running aggregate on views.

realm/realm-core,realm/realm-core,realm/realm-core,realm/realm-core,realm/realm-core,realm/realm-core,realm/realm-core