Fix undefined index for username in cwl module