SearchPanel: check if string is null before accessing it

This fixes http://bugs.aokp.co/issues/104

Change-Id: Ib05d473bf6afcaada19c2490bebca18d0ba6fb58
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>