fixed bug when calling sync-gateway views with null params