Fix #2 for null user in logger