fixed absence of null checking in notes search