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

Signed-off-by: Florent Viard <fviard@lacie.com>