Fix multiple endpoint failures when using start/count

- If the sublist generated is invalid, return an empty list
- When filtering with attributes, do not sublist again
- Add testcases to cover the above