Bugfix: skipping RowPermissions on empty filter array. Minor refactoring.