fix null pointer exception when rabbitmq.uri is not provided