CAMEL-6626 Fixed the search criteria NPE of camel-mail with thanks to Ales