try to fix bug in filter when do rule index when filter result is empty.
try to fix bug in filter when do rule index when filter result is empty.

Signed-off-by: Daogang Tang <6435653d2db08e7863743a16df53ecbb301fb4b0@gmail.com>

daogangtang/bamboo,daogangtang/bamboo