RavenDB-2653: Query files using OnDirectory fails with exception