NPE fixed in search.jsp