Good catch. Yes, I think dlg should be allowed to be an empty string.