handle undefined arguments in logs properly