Invalid login in inline forms from non-default modules broken

* Invalid login using inline form from non-default modules redirects to "default" module and the current controller. The user in this case is redirected to the same URL.

* Can reproduce in CRMT template, doing an invalid login in from project/task