fixing bug in getting tenant domain when no user is lodged in
Merge remote-tracking branch 'origin/master'