Fix for redirect loop when "Auto Create Users" is disabled

With "Auto Create Users" disabled, not existing user ended up in an infinite redirect loop. This change fixed the problem for me.