Avoiding nulls in logs

Little change  to avoid logs like:
    
    Request: request id=8; uri=/api/tree?null; payload=