[Content] TCT crash and passrate fixes

Implement scanFile method which is heavily used by the TCT web api test suite.

Fix a crash for filter with invalid parameters (no bug yet).