CAMEL-8125: Avoid potential NPE when using @PropertyInject with Camel main.
CAMEL-8125: Avoid potential NPE when using @PropertyInject with Camel main.