[CAMEL-7306]: key is optional. Avoid NPE