Add null pointer check for searchReceiver.