Fix to check if searchTerm is not "undefined" before trying to use it to...

... filter search results.

Fixes Issue #1878 

Signed-off-by: Florent Viard <fviard@lacie.com>