Fix empty filter query through public api
add test for the case