fix for #158

@settinghead please review. This is just the fix for exception. The main fix for this issue is in the Core API.
Good question. For some reason it works like this. Let me investigate when and how user is populated.