Avoiding multiple code loops in filter scheduler

The code snippet can not provide the original target. In the
filters module, there is one line code will never be invoked
because of the code logic, so I modified it.

Fixes: bug 1186945
Change-Id: I3f2a662c28ab466b178268cae3502c40a1d22657
Merge "Avoiding multiple code loops in filter scheduler"